function [num] = vec2num(vector)
    len = length(vector);
    str = '';
    for i = 1:len,
        str = strcat(str,num2str(vector(i)));
    end
    num = str2num(str);
end

